package com.iweipan.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.iweipan.fragment.MyQuanListFragment;

/**
 * Created by xyb on 2016/12/21.
 */

public class MyQuanAdapter extends FragmentPagerAdapter {
    private String token;

    public MyQuanAdapter(FragmentManager fm, String token) {
        super(fm);
        this.token = token;
    }

    @Override
    public Fragment getItem(int position) {
        return MyQuanListFragment.newInstance(position,token);
    }

    @Override
    public int getCount() {
        return 3;
    }
}
